package com.lin.manager.system.model.vo;

import com.lin.manager.log.service.Log;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Setter;
import org.apache.commons.lang3.math.NumberUtils;

import java.util.Date;

/**
 * @author linjiang
 * @date 2024/8/23
 * @fn
 */
@Setter
@ApiModel("错误日志VO")
public class ErrorLogVO implements Log {
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty(value = "模块名称")
    private String module;
    @ApiModelProperty(value = "模块描述")
    private String descript;
    @ApiModelProperty("用户名称")
    private String userName;
    @ApiModelProperty("ip地址")
    private String ip;
    @ApiModelProperty("请求参数")
    private String reqParams;
    @ApiModelProperty("请求方式")
    private String reqMethod;
    @ApiModelProperty("请求路径")
    private String reqUri;
    @ApiModelProperty("异常描述")
    private String eMsg;
    @ApiModelProperty("异常code")
    private String eCode;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @Override
    public Long getId() {
        return this.id;
    }

    @Override
    public Integer getStatus() {
        return NumberUtils.INTEGER_ONE;
    }

    @Override
    public String getDescript() {
        return this.descript;
    }

    @Override
    public String getUserName() {
        return this.userName;
    }

    @Override
    public String getIp() {
        return this.ip;
    }

    @Override
    public String getMethod() {
        return this.reqMethod;
    }

    @Override
    public Date getCreateTime() {
        return this.createTime;
    }

    public String getModule() {
        return module;
    }

    public String getReqParams() {
        return this.reqParams;
    }

    public String getReqMethod() {
        return this.reqMethod;
    }

    public String getReqUri() {
        return this.reqUri;
    }

    public String geteMsg() {
        return this.eMsg;
    }

    public String geteCode() {
        return this.eCode;
    }
}
